//
//  ZZTongUtility.h
//  ZZTong
//
//  Created by xy on 13-5-20.
//  Copyright (c) 2013年 handpay. All rights reserved.
//

#import <Foundation/Foundation.h>


#define ZZTUtility               [ZZTongUtility getZZTongUtility]

typedef enum{
    BANK_NONE = 0,
    BANK_CMBC = 1,   //民生
    BANK_ABC  = 2,   //农业
    BANK_JS   = 3,   //晋商
}BANK_FLAG;


@interface ZZTongUtility : NSObject

-(NSString*)getBankLogo:(NSString*)cardNo;
-(BOOL)isBankCard:(NSString*)cardNo withName:(BANK_FLAG)flag;
+(ZZTongUtility *)getZZTongUtility;
- (NSString*)getBankName:(BANK_FLAG)flag;
- (NSString*)getBankLogoWithName:(NSString*)name;

+ (BOOL)checkIsInput:(UITextField*)textField tips:(NSString*)tips;
+ (BOOL)checkLength:(UITextField*)textField tips:(NSString*)tips minLen:(NSInteger)minLen maxLen:(NSInteger)maxLen;

+ (BOOL)checkMobile:(NSString*)mobile tips:(NSString*)tips;

+ (BOOL)checkIDCard:(NSString *)number tips:(NSString*)tips;

+ (NSString*)maskMobile:(NSString*)mobile;

+ (NSString*)packageToEncry:(NSString*)data isMac:(BOOL)isMac;
+ (NSString*)packageData:(NSString*)data;
+ (NSString *)stringToHex:(NSString *)string;

+ (BOOL)checkName:(NSString*)name tips:(NSString*)tip;

+ (BOOL)checkShopName:(NSString*)name tips:(NSString*)tip;

+ (BOOL)compareTime:(NSString*)transTime;
@end
